package util;

import java.util.HashMap;

public class GBIZHONG{ 
	private HashMap<String,Integer> BIZHONG2CODE = new HashMap<String, Integer>();
	private HashMap<Integer,String> CODE2BIZHONG = new HashMap<Integer,String>();

	public GBIZHONG() {
		super();
		setBizhong("RMB",1);
		setBizhong("DOLLAR",2);
	}
	
	public Integer getBizhong(String bizhong){
		return BIZHONG2CODE.get(bizhong);
	}
	
	public String getBizhong(Integer code){
		return CODE2BIZHONG.get(code);
	}
	
	public void setBizhong(String bizhong,Integer code){
		this.BIZHONG2CODE.put(bizhong, code);
		this.CODE2BIZHONG.put(code, bizhong);
	}
}
